<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
    <style>
        label {
            display: block;
            margin: 10px;
        }
    </style>
    <%- include common %>
</head>

<body>
    <%- include("head",{title:"register",username:""}) %>
    <div class="container-fluid">
        <div class="col-md-4">
            <form action="/users/register" method="POST">
                <h2 class="text-info">注册</h2>
                <div class="form-group">
                    <label for="username">用户名</label>
                    <input name="username" type="text" class="form-control" id="username" placeholder="请输入用户名">
                </div>
                <div class="form-group">
                    <label for="nickname">昵称</label>
                    <input name="nickname" type="text" class="form-control" id="nickname" placeholder="请输入昵称">
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input name="password" type="password" class="form-control" id="password" placeholder="请输入密码">
                </div>
                <div class="form-group">
                    <label for="confirmpassword">确认密码</label>
                    <input name="confirmpassword" type="password" class="form-control" id="confirmpassword"
                        placeholder="请输入确认密码">
                </div>
                <div class="form-group">
                    <a href="/login" class="link">已有账号,立即登录</a>
                </div>
                <button type="submit" class="btn btn-warning">注册</button>
                <button type="reset" class="btn btn-danger">重置</button>
            </form>
        </div>
    </div>
    <%- include footer %>
</body>

</html>